<a href='https://github.com/angular/angular.js/edit/v1.5.x/src/ngComponentRouter/Router.js?message=docs(Router)%3A%20describe%20your%20change...#L41' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>



<a href='https://github.com/angular/angular.js/tree/v1.5.8/src/ngComponentRouter/Router.js#L41' class='view-source pull-right btn btn-primary'>
  <i class="glyphicon glyphicon-zoom-in">&nbsp;</i>View Source
</a>


<header class="api-profile-header">
  <h1 class="api-profile-header-heading">Router</h1>
  <ol class="api-profile-header-structure naked-list step-list">
    
    <li>
      - type in module <a href="api/ngComponentRouter">ngComponentRouter</a>
    </li>
  </ol>
</header>



<div class="api-profile-description">
  <p>A <code>Router</code> is responsible for mapping URLs to components.</p>
<ul>
<li>Routers and &quot;Routing Component&quot; instances have a 1:1 correspondence.</li>
<li>The Router holds reference to one or more of Outlets.</li>
<li>There are two kinds of Router: <a href="api/ngComponentRouter/type/RootRouter"><code>RootRouter</code></a> and <a href="api/ngComponentRouter/type/ChildRouter"><code>ChildRouter</code></a>.</li>
</ul>
<p>You can see the state of a router by inspecting the read-only field <code>router.navigating</code>.
This may be useful for showing a spinner, for instance.</p>

</div>





<fieldset class="deprecated">
  <legend>Deprecated API</legend>
  <p>In an effort to keep synchronized with router changes in Angular 2, this implementation of the Component Router (ngComponentRouter module)
has been deprecated and will not receive further updates.
We are investigating backporting the Angular 2 Router to Angular 1, but alternatively, use the <a href="api/ngRoute"><code>ngRoute</code></a> module or community developed
projects (e.g. <a href="https://github.com/angular-ui/ui-router">ui-router</a>).</p>

</fieldset>


<div>
  

    

  

  
  
  



  
</div>


